package chess.utils;

public class Game {

	private int ID;
	
	private int databaseID;


	private Player player1;

	private Player player2;

	private Style12 style;

	public Game(int ID) {
		this.ID = ID;
	}

	public Player getPlayer1() {
		return player1;
	}

	public void setPlayer1(Player player1) {
		this.player1 = player1;
	}

	public Player getPlayer2() {
		return player2;
	}

	public void setPlayer2(Player player2) {
		this.player2 = player2;
	}

	public Style12 getStyle() {
		return style;
	}

	public void setStyle(Style12 style) {
		this.style = style;
	}

	public int getID() {
		return ID;
	}
	
	public int getDatabaseID() {
		return databaseID;
	}

	public void setDatabaseID(int databaseID) {
		this.databaseID = databaseID;
	}
	
	public String printString(){
		String game="";
		game=game.concat("Game ID: "+this.ID+"\n");
		game=game.concat("Player 1: "+this.player1.getName()+"("+this.player1.getRating()+")"+"\n");
		game=game.concat("Player 2: "+this.player2.getName()+"("+this.player2.getRating()+")"+"\n");
		return game;
	}

}
